package com.sam;

import com.sam.thread.ThreadDemoServiceImpl;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class AppStart {
    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext app = new SpringApplicationBuilder(AppStart.class).web(false).run(args);
        ThreadDemoServiceImpl threadDemoService = app.getBean(ThreadDemoServiceImpl.class);

        threadDemoService.multThread();
    }
}